/*
vue-router 路由文件
*/

import Vue from 'vue';
import VueRouter from 'vue-router';
//import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'Main',
        component: () => import('../views/Main.vue'),
        children: [
            {
                path: '/monitor',
                name: 'Monitor',
                component: () => import('../views/Monitor')
            },
            {
                path: '/occupancy',
                name: 'Occupancy',
                component: () => import('../views/Occupancy')
            },
            {
                path: '/ssh',
                name: 'Ssh',
                component: () => import('../views/Ssh')
            }
        ]
    },

]

const router = new VueRouter({
    mode: 'history',
    routes
})

export default router